$(function(){
	$("#forma").validate({
        rules : {
        	username:{required:true,minlength:4},
        	password:{required:true,minlength:1} 
        },
        messages:{
        	username:{required:'请输入用户名!',minlength:'用户名长度不能低于4位!'},
        	password:{required:'请输入密码!',minlength:'密码长度不能低于1位!'} 
        },
       // invalidHandler : function(){return false;},
        submitHandler: function(){
        	//var params = $("input").serializeArray();
        	//AjaxCore(params,"j_spring_security_check","index.action");//调用服务端验证
        	//return false;
        }
	});
})
